package com.htl.exampro.exam.pojo.constant;

import lombok.Getter;

@Getter
public enum ExamStatusConstant {

    WBM(10000, "未报名"),
    YBM(10001, "已报名"),
    QK(10002, "缺考"),
    KSZ(10003, "考试中"),
    YJJ(10004, "已交卷"),
    YPF(10005, "已评分");

    private final Integer statusId;
    private final String statusName;

    ExamStatusConstant(final Integer typeId, final String statusName) {
        this.statusId = typeId;
        this.statusName = statusName;
    }

    public String getStatusName(Integer typeId) {
        for (ExamStatusConstant value : ExamStatusConstant.values()) {
            if (value.getStatusId().equals(typeId)) {
                return value.getStatusName();
            }
        }
        return null;
    }
}
